<%@ page import="stravel.Blog" %>



        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="name">
          <g:message code="blog.name.label" default="Name" />
          <span class="required-indicator">*</span>
        </label>
        <div class="col-sm-10">
              <g:textField name="name" required="" value="${blogInstance?.name}"/>

        </div>
  </div>

        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="url">
          <g:message code="blog.url.label" default="Url" />
          <span class="required-indicator">*</span>
        </label>
        <div class="col-sm-10">
              <g:field type="url" name="url" required="" value="${blogInstance?.url}"/>

        </div>
  </div>

        
  <div class="form-group">
        <label class="col-sm-2 control-label" for="entries">
          <g:message code="blog.entries.label" default="Entries" />
          
        </label>
        <div class="col-sm-10">
              
<ul class="one-to-many">
<g:each in="${blogInstance?.entries?}" var="e">
    <li><g:link controller="blogEntry" action="show" id="${e.id}">${e?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="blogEntry" action="create" params="['blog.id': blogInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'blogEntry.label', default: 'BlogEntry')])}</g:link>
</li>
</ul>


        </div>
  </div>

